from django.db import transaction
from rest_framework import serializers

from apps.classify.models import WorksCategory


class WorksCategorySerializer(serializers.ModelSerializer):
    """作品分类序列化器类"""

    class Meta:
        model = WorksCategory
        fields = ('id', 'name')
